home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / vim_src.zip / MAKEFILE.DIC < prev    next >
Text File  |  1993-01-12  |  3KB  |  128 lines

  1. #
  2. # Makefile for VIM, using DICE 2.06.40 and 2.06.21
  3. #
  4.  
  5. #>>>>> choose options:
  6. ### -DDIGRAPHS        digraph support (at the cost of 1.6 Kbyte code)
  7. ### -DWILD_CARDS    wildcard expansion code
  8. ### -DDEBUG        output a lot of debugging garbage
  9. ### -DTERMCAP        include termcap file support
  10. ### -DNO_BUILTIN_TCAPS    do not include builtin termcap entries
  11. ###                (use only with -DTERMCAP)
  12. ### -DSOME_BUILTIN_TCAPS include most useful builtin termcap entries
  13. ###                (use only without -DNO_BUILTIN_TCAPS)
  14. ### -DALL_BUILTIN_TCAPS    include all builtin termcap entries
  15. ###                (use only without -DNO_BUILTIN_TCAPS)
  16. DEFINES = -DWILD_CARDS -DTERMCAP -DDIGRAPHS -DSOME_BUILTIN_TCAPS
  17.  
  18. #>>>>> if TERMCAP is defined termlib.o has to be used
  19. TERMLIB = termlib.o
  20. #TERMLIB = 
  21.  
  22. #>>>>> end of choices
  23. ###########################################################################
  24.  
  25. CFLAGS = -c -DAMIGA $(DEFINES)
  26.  
  27. INCL = vim.syms
  28. PRE = -H${INCL}=vim.h
  29. LIBS = -lmanx -la
  30. CC = dcc
  31. LD = dcc
  32.  
  33. .c.o:
  34.     ${CC} ${PRE} ${CFLAGS} $*.c -o $@
  35.  
  36. OBJ =    alloc.o amiga.o buffers.o charset.o cmdline.o csearch.o digraph.o \
  37.     edit.o fileio.o help.o linefunc.o main.o mark.o message.o misccmds.o \
  38.     normal.o ops.o param.o quickfix.o regexp.o regsub.o screen.o \
  39.     script.o search.o storage.o tag.o undo.o $(TERMLIB)
  40.  
  41. /Vim: $(OBJ) version.c
  42.     ${CC} $(CFLAGS) version.c -o version.o
  43.     ${LD} -o /Vim $(OBJ) version.o $(LIBS)
  44.  
  45. debug: $(OBJ) version.c
  46.     ${CC} $(CFLAGS) version.c -o version.o
  47.     ${LD} -s -o /Vim $(OBJ) version.o $(LIBS)
  48.  
  49. ctags:
  50.     csh -c ctags *.c *.h
  51.  
  52. # can't use delete here, too many file names
  53. clean:
  54.     csh -c rm -f $(OBJ) version.o mkcmdtab.o /Vim $(INCL) mkcmdtab
  55.  
  56. $(INCL)  : vim.h globals.h keymap.h macros.h ascii.h term.h amiga.h
  57.     delete $(INCL)
  58.  
  59. ###########################################################################
  60.  
  61. alloc.o:    alloc.c  $(INCL)
  62.  
  63. amiga.o:    amiga.c  $(INCL) amiga.h
  64.  
  65. buffers.o:    buffers.c  $(INCL)
  66.  
  67. charset.o:    charset.c  $(INCL)
  68.  
  69. cmdline.o:    cmdline.c  $(INCL) cmdtab.h
  70.  
  71. csearch.o:    csearch.c  $(INCL) regexp.h
  72.  
  73. digraph.o: digraph.c    $(INCL)
  74.  
  75. edit.o: edit.c    $(INCL)
  76.  
  77. fileio.o:    fileio.c  $(INCL)
  78.  
  79. help.o: help.c    $(INCL)
  80.  
  81. linefunc.o:    linefunc.c  $(INCL)
  82.  
  83. main.o: main.c
  84.     ${CC} ${CFLAGS} main.c -o main.o
  85.  
  86. mark.o: mark.c    $(INCL) mark.h
  87.  
  88. message.o:    message.c  $(INCL)
  89.  
  90. misccmds.o:    misccmds.c  $(INCL)
  91.  
  92. normal.o:    normal.c  $(INCL) ops.h
  93.  
  94. ops.o:    ops.c  $(INCL) ops.h
  95.  
  96. param.o:    param.c  $(INCL)
  97. # Because of a bug in DC1 2.06.40, initialisation of unions does not
  98. # work correctly. dc1-21 is DC1 2.06.21 which does work.
  99.     rename dc1-21 dc1
  100.     ${CC} ${CFLAGS} param.c -o param.o
  101.     rename dc1 dc1-21
  102.  
  103. quickfix.o:    quickfix.c  $(INCL)
  104.  
  105. regexp.o:    regexp.c  $(INCL) regexp.h
  106.  
  107. regsub.o:    regsub.c  $(INCL) regexp.h
  108.  
  109. screen.o:    screen.c  $(INCL)
  110.  
  111. script.o:    script.c  $(INCL)
  112.  
  113. search.o:    search.c  $(INCL) regexp.h
  114.  
  115. tag.o:    tags.c  $(INCL) mark.h
  116.  
  117. termlib.o:    termlib.c $(INCL)
  118.  
  119. storage.o:    storage.c  $(INCL)
  120.  
  121. undo.o: undo.c    $(INCL)
  122.  
  123. cmdtab.h: cmdtab.tab mkcmdtab
  124.     mkcmdtab cmdtab.tab cmdtab.h
  125.  
  126. mkcmdtab: mkcmdtab.o
  127.     ${LD} -o mkcmdtab mkcmdtab.o
  128.